<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="EN" lang="EN"
	dir="ltr">
<head>
<title>Moment Mobile Payments</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="imagetoolbar" content="no" />
<link rel="stylesheet"
	href="<%=request.getContextPath()%>/styles/layout.css" type="text/css" />
<script src="//code.jquery.com/jquery-1.9.1.js"></script>

<style>
.control-label {
	display: inline-block;
	width: 250px;
}

.control-group {
	padding-bottom: 10px;
}
</style>
</head>
<body id="top">
	<%@include file="loggedinheader.jsp"%>
	<%@ page import="org.json.*"%>
	<%@ page import="com.moment.model.*"%>
	<%@page import="com.moment.webservice.*"%>
	<%@page import="com.moment.util.Converter"%>
	<%@page import="java.util.HashMap"%>
	<%@page import="java.util.Map"%>
	<%@ page language="java" contentType="text/html; charset=UTF-8"
		pageEncoding="UTF-8"%>
	<%@page import="java.util.*"%>
	<%!String s[];%>

	You are not logged in
	<br />
	<a href="index.jsp">Please Login</a>
	<jsp:useBean id="userObj" class="com.moment.model.UserReg"
		scope="session" />
	<div class="wrapper col3">

		<div id="intro">
			<div id="logout">
				<a href="/MMP/LogoutController"><img
					src="<%=request.getContextPath()%>/images/logout.png" alt="Logout" /></a>
			</div>
			<div class="fl_left1">

				<div id="login1">
					<div class="imgl">
						<img alt="Embedded Image" height="128" width="128"
							src="data:image/jpeg;base64,<jsp:getProperty name="userObj" property="imagestr" />" />
					</div>
				</div>
				<div id="instrumentsmain">
					<div>

						<h2>
							<center>Add Location</center>
						</h2>
					</div>
					<form action="../LocationController" method="post">

						<div class="control-group">
							<label class="control-label" for="lname">Location Name:
								</label> <input type="text" name="lname"
								id="lname"  class="" /> <span
								style="display: none;" class="help-inline">Please enter
								numeric values only.</span>

						</div>
						
						<div class="control-group">
							<label class="control-label" for="laddress">Location Address:
								</label> <input type="text" name="laddress"
								id="laddress"  class="" /> <span
								style="display: none;" class="help-inline">Please enter
								numeric values only.</span>

						</div>
						<div class="control-group">
							<label class="control-label" for="linstru">Instrument:
								</label> <select id="linstru" name="linstru">
										<%
											s = (String[]) session.getAttribute("instrumentlist");
											System.out.println("iname" + request.getParameter("iname"));

											System.out.println("s=" + s);
											for (String ss : s) {
												String select = "";
												if (ss.equalsIgnoreCase(request.getParameter("iname"))) {
													select = "selected='selected'";
												}
										%>
										<option value="<%=ss%>" <%=select%>><%=ss%></option>
										<%
											}
										%>
								</select> <span
								style="display: none;" class="help-inline">Please enter
								numeric values only.</span>

						</div>
						




						<div class="fl_right">
							<input type="submit" class="myButton" value="Submit" /> <input
								type="hidden" name="ltype" value="add" />
						</div>
					</form>




				</div>

			</div>
		</div>
	</div>
	<br class="clear" />


	<%@include file="footer.jsp"%>


</body>
</html>

